//
//  XGMineViewController.m
//  Instagram
//
//  Created by monkey on 2019/4/20.
//  Copyright © 2019 itcast. All rights reserved.
//

#import "XGMineViewController.h"
#import "XGSettingTableViewController.h"

@interface XGMineViewController ()

@end

@implementation XGMineViewController

#pragma mark - 控制器生命周期方法

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"设置" style:UIBarButtonItemStylePlain target:self action:@selector(pushToSettingViewControllerAction)];
}

#pragma mark - 监听方法

/// 前往设置界面
- (void)pushToSettingViewControllerAction
{
    XGSettingTableViewController *viewController = [[XGSettingTableViewController alloc] initWithPlistName:@"setting.plist"];
    viewController.navigationItem.title = @"设置";
    [self.navigationController pushViewController:viewController animated:YES];
}

@end
